package com.liugui.objectoriented;

/**
 * @ClassName: StaticTest
 * @Author: liugui
 * @Date: 2020-10-26 09:47
 **/
public class StaticTest {
    public static String str = "liugui";

    public static void main(String[] args) {
        //静态成员不需要实例化 直接就可以访问
        System.out.println(StaticTest.str);

        StaticTest test = new StaticTest();

        System.out.println(test.str);

    }
}
